package com.example.styrepositories.irepoisitories;


import com.alibaba.dubbo.config.annotation.Service;
import com.example.stymodel.model.Apple;
import com.example.styrepositories.mapper.AppleMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author wcq
 * mysql增删改查测试
 */
@Service
public interface IAppleRepository {

    public void insert(Apple apple);

    public void update(Apple apple);


    public void delete(Integer id);

    public List<Apple> selectAll();

    public Apple selectOne(Integer id);
}